package com.freecloud.javabasics.design.strategy;

/**
 * @Author: maomao
 * @Date: 2019-11-15 10:09
 */
public interface Eat {
    void eat();
}


class Chopsticks implements Eat{

    @Override
    public void eat() {
        System.out.println("用筷子吃饭！");
    }
}

class Knife implements Eat {

    @Override
    public void eat() {
        System.out.println("用刀子吃饭！");
    }
}

class Fork implements Eat{
    @Override
    public void eat() {
        System.out.println("用叉子吃饭！");
    }
}